package com.team.recruitment_management_system.pojo.vo.chat;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@Schema(description = "获取聊天列表返回类")
public class ChatListVo {
    private Integer id;

    /**
     * 职业信息
     */
    private ChatListJobInfoVo jobInfoVo;

    private Integer resumeId;

    /**
     * 对方头像
     */
    private String targetAvatar;

    /**
     * 对方称呼
     */
    private String targetName;

    /**
     * 对方用户名
     */
    private String targetUsername;

    /**
     * 对方
     */
    private String targetJob;

    /**
     * 最近消息
     */
    private String recentMessage;

    /**
     * 上次对话时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date lastTime;

}
